import asyncComponent from "../common/util/asyncComponent";

const Login = asyncComponent(() => import("../view/Login/Login"));
const Regist = asyncComponent(() => import("../view/Regist/Regist"));
const Findpsw = asyncComponent(() => import("../view/FindPsw/FindPsw"));


const Layouts = asyncComponent(() => import("../view/Layout/Layout")); // 用户中心

const TextSign = asyncComponent(() => import("../view/TextSign/TextSign.js")); // 篇章标注页
const WordTypeSign = asyncComponent(() => import("../view/WordTypeSign/WordTypeSign")); // 词性标注页

const ExamineWord = asyncComponent(() => import("../view/ExamineWord/ExamineWord")); // 词性标注审核页
const CheckSign = asyncComponent(() => import("../view/CheckSign/CheckSign")); // 篇章标注审核页
const TextSignTrainResult = asyncComponent(() => import("../view/TextSignTrainResult/TextSignTrainResult")); // 篇章标注审核页
const NotFound = asyncComponent(() => import("../view/Status/404"));

const routes =  [
    {
        path: "/",
        exact: true,
        component: Login
    }, {
        path: "/regist",
        exact: true,
        component: Regist
    }, {
        path: "/login",
        exact: true,
        component: Login
    }, {
        path: "/findpsw",
        exact: true,
        component: Findpsw
    }, {
        path: "/layout",
        exact: false,
        component: Layouts
    }, {
        path: "/textSign",
        exact: false,
        component: TextSign
    }, {
        path: "/wordTypeSign",
        exact: true,
        component: WordTypeSign
    }, {
        path: "/examineWord",
        exact: true,
        component: ExamineWord
    },{
        path: "/checkSign",
        exact: true,
        component: CheckSign
    },{
        path: "/textSignTrainResult",
        exact: true,
        component: TextSignTrainResult
    }, {
        path: "*",
        component: NotFound
    },
];

export default routes